package com.bruce.li.pojo;


import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
public class Sku {
    private String id;
    private String name;
    private Integer price;
    private Integer num;
    private String image;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date updateTime;
    private Integer categoryId;
    private String categoryName;
    private String brandName;
    private Integer saleNum;
    private Integer commentNum;
}
